#ifndef __MOTOR_H
#define __MOTOR_H
#include "sys.h"

#define PWMB   TIM1->CCR1  //PA8
#define PWMA	 TIM1->CCR2	 //PA9
#define PWMC   TIM1->CCR3  //PA10
#define PWMD   TIM1->CCR4  //PA11

#define AIN1   PBout(13)
#define AIN2   PBout(12)

#define BIN1   PBout(15)
#define BIN2   PBout(14)

#define CIN1   PAout(5)
#define CIN2   PAout(4)

#define DIN2   PBout(0)
#define DIN1   PBout(1)





void Motor_Init(void);
void Set_Pwm(float  moto1,float moto2,float moto3,float moto4);
int myabs(int a);


#endif
